/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.composition.model;

/**
 *
 * @author Jameel
 */
public class CompositionEmp {
    private String firstName;
    private String lastName;
    private String ID;
    private double Salary;
    private double sales;

    public CompositionEmp() {
    }
    
    public CompositionEmp(String firstName, String lastName, String ID, double Salary, double sales) {
        this.firstName = firstName;
        this.lastName = lastName;
        this.ID = ID;
        this.Salary = Salary;
        this.sales = sales;
    }   

    public double payment(double sale)
    {
        return (0.10 * sales);
    }
    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public double getSalary() {
        return Salary;
    }

    public void setSalary(double Salary) {
        this.Salary = Salary;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public double getSales() {
        return sales;
    }

    public void setSales(double sales) {
        this.sales = sales;
    } 
    
    @Override
    public String toString() {
        return "Employee{" + "firstName=" + firstName + ", lastName=" + lastName + ", ID=" + ID + ", Salary=" + Salary + ", sales=" + sales + '}';
    }
    
}
